package me.sdevil507.clouddisk.helper;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 云盘配置
 *
 * @author sdevil507
 * created on 2021/3/19
 */
@Component
@ConfigurationProperties(prefix = "cloud-disk")
@Data
public class CloudDiskProperties {

    /**
     * accessKey
     */
    private String accessKey;

    /**
     * secertKey
     */
    private String secertKey;

    /**
     * endpoint
     */
    private String endpoint;

    /**
     * endpoint
     */
    private String internalEndpoint;

    /**
     * bucket
     */
    private String bucket;

    /**
     * 过期时间(单位:min)
     */
    private long expiration;


    private String stsEndpoint;


    private String stsAccessKeyId;


    private String stsAccessKeySecret;


    private String stsRoleArn;
}
